package com.springboot.service.impl;

import com.springboot.mysqlOnedao.Student1Mapper;
import com.springboot.mysqlTwodao.Student2Mapper;
import com.springboot.service.StudentService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("studentService")
public class StudentServiceImp implements StudentService{
	@Autowired
	private Student1Mapper student1Mapper;
  @Autowired
  private Student2Mapper student2Mapper;


  @Override
  public List getAllStudentsFromDb1(String name) {
    return student1Mapper.getAllStudentsFromDb1(name);
  }

  @Override
  public List getAllStudentsFromDb2(String name) {
    return student2Mapper.getAllStudentsFromDb2(name);
  }
}
